package router

import (
	"hsy/app/controllers/teams"
	"hsy/app/controllers/users"

	"github.com/gin-gonic/gin"
)

func adminRouter(v string, g *gin.Engine) {
	u := g.Group(v)
	{
		// 登录
		u.POST("/login", users.Login)
		// 用户
		u.GET("/user/list", users.List)
		u.POST("/user/create", users.Create)
		u.POST("/user/update", users.Update)
		u.POST("/user/delete/*id", users.Delete)

		u.GET("/teams/list", teams.List)
	}
}
